package control;

import org.hibernate.Session;
import util.HibernateUtil;

public class ConnectControl {
    
    private Session session;
    
     
    
    public ConnectControl() {
        session = HibernateUtil.getSessionFactory().openSession();
    
    }
    
    public Session GetSession(){
        return session;
    }
    
    public void close(){
        session.close();
    }
    
    
}
